<div style="float:left; width:100%;padding-bottom:100px;">
    <h1>Member Profile</h1><br>
    <div style="float:left; margin-bottom: 5px;">
        <?php echo $is_read_only ? '' : '<a href="/index.php?/member_profile/update_profile_pic">Update profile picture</a>';?>
    </div>
    <div class = "clear-class"/></div>
    <div class="profile-pic">
        <img src="<?php echo base_url().'profile_photos/'.$profile_pic?>"/>
    </div>
    <div class="profile-info">
        <div style="float:right;">
            <?php echo $is_read_only ? '' : '<a href="/index.php?/member_profile/edit_bio">Update Password / Edit Bio and Address</a>';?>
        </div>
        <div class = "clear-class"></div>
        <?php 
            //Load a read-only form to display the user's bio and address fields
            $this->load->helper('form');
        ?>

        <?php echo form_fieldset('Basic Information','class = "profile-frameset"');?>
        <?php echo form_label('Last Name:', '_lastName');?>
            <div class="read-only"><?php echo $last_name; ?></div>
                <div class = "clear-class"></div>
        <?php echo form_label('First Name:', '_firstName');?>
            <div class="read-only"><?php echo $first_name; ?></div>
                <div class = "clear-class"></div>
        <?php echo form_label('Spouse:', '_spouse');?>
            <div class="read-only"><?php echo $spouse_name; ?></div>
                <div class = "clear-class"></div>
<?php if(!$is_read_only) : ?>
        <?php echo form_label('Dependents:', '_dependents');?>
            <div class="read-only"><?php echo $dependents; ?></div>
                <div class = "clear-class"></div>
        <?php echo form_label('Phone:', '_phone');?>
            <div class="read-only"><?php echo $phone; ?></div>
                <div class = "clear-class"></div>			
        <?php echo form_label('E-mail:', '_email');?>
            <div class="read-only"><?php echo $email; ?></div>
                <div class = "clear-class"></div>			
<?php endif; ?>
<?php if(strlen($facebook_username) > 0) : ?>
        <label>&nbsp</label>
        <div class="read-only"><?php echo '<a href="http://www.facebook.com/'.$facebook_username.'" target="_blank">Facebook</a>'; ?></div>
                <div class = "clear-class"></div>			
<?php endif; ?>
<?php if(strlen($twitter_username) > 0) : ?>
        <label>&nbsp</label>
        <div class="read-only"><?php echo strlen($twitter_username)  == 0 ? '' : '<a href="http://www.twitter.com/'.$twitter_username.'" target="_blank">Twitter</a> '; ?></div>
                <div class = "clear-class"></div>			
<?php endif; ?>
		<?php echo form_fieldset_close(); //Profile Basic Info Fieldset ?>
        <?php echo form_fieldset('Address','class = "profile-frameset"');?>
<?php if(!$is_read_only) : ?>
            <?php echo form_label('Address:', '_address');?>
                <div class="read-only"><?php echo $address; ?></div>
                    <div class = "clear-class"></div>
<?php endif; ?>
            <?php echo form_label('City:', '_city');?>
                <div class="read-only"><?php echo $city; ?></div>
                    <div class = "clear-class"></div>
            <?php echo form_label('State:', '_state');?>
                <div class="read-only"><?php echo $state; ?></div>
                    <div class = "clear-class"></div>
            <?php echo form_label('Zip:', '_zip');?>
                <div class="read-only"><?php echo $zip; ?></div>
        <?php echo form_fieldset_close(); //Address Info Fieldset ?>
    </div>
</div>
<div style="clear:both;"></div>
<div>
    <h1>My Cars</h1><br>
    <div style="width: 750px;" class="AvdImageDividerTop" >
        <div align="right">
            <?php	if ($is_read_only) 
						echo $view_link; 
					else
						echo $add_link.$view_link.$delete_link;
						?>
        </div>
    </div>
    <div style="width: 750px;"> 
        <?php echo $car_history;?>
    </div>


</div>
